package com.cug.campus_sh_market_server.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.cug.campus_sh_market_server.entity.po.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户商品购买请求
 * </p>
 *
 * @author sxt
 * @since 2022-05-25
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "GoodsTrading对象", description = "用户商品购买请求")
public class GoodsTrading extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品id")
    private Integer goodsId;

    @ApiModelProperty(value = "申请状态（0: 待卖家审核, 1: 交易成功, 2: 卖家拒绝）")
    private Integer status;

    @ApiModelProperty(value = "买家购买陈述")
    private String des;

    @ApiModelProperty(value = "卖家最终回复")
    private String reply;

}
